import React from 'react'

import { Route, Routes } from 'react-router-dom'
import Login from './container/login/login'
import Register from './container/register/register'
import AuthRoute from './component/authroute/authroute'
import BossInfo from './container/bossinfo/bossinfo'
import GeniusInfo from './container/geniusinfo/geniusinfo'
import Dashboard from './component/dashboard/dashboard'
import Chat from './component/chat/chat'

class App extends React.Component{
    render(h) {
        return (
            <div>
                <AuthRoute></AuthRoute>
                <Routes>
                    <Route path='/login' element={<Login />}></Route>
                    <Route path='/register' element={<Register />}></Route>
                    <Route path='/bossinfo' element={<BossInfo />}></Route>
                    <Route path='/geniusinfo' element={<GeniusInfo />}></Route>
                    <Route path='/chat/:user' element={<Chat />}></Route>
                    <Route exact path='*' element={<Dashboard />}></Route>
                </Routes>
            </div>
        ) 
    }
}

export default  App